package org.opengoofy.index12306.framework.starter.database.handler;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;

import org.opengoofy.index12306.framework.starter.distributedid.toolkit.SnowflakeIdUtil;

public class CustomIdGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return SnowflakeIdUtil.nextId();
    }
}
